//package com.example.demo.vo.webvo
//
//import com.example.demo.dao.TJzrNurseDao.bindTo
//import com.example.demo.dao.TJzrNurseDao.primaryKey
//import com.example.demo.dbmodels.TJzrNurse
//import io.swagger.annotations.ApiModelProperty
//import me.liuwj.ktorm.schema.*
//import java.time.LocalDateTime
//
//class NurseVo {
//
//
//    @ApiModelProperty("护士ID")
//    var menuId: Int? = 0
//
//    @ApiModelProperty("工号")
//    var code: String? = null
//
//    @ApiModelProperty("病区编码")
//    var districtCode: String? = null
//
//    @ApiModelProperty("科室编码")
//    var deptCode: String? = null
//
//    @ApiModelProperty("用户ID")
//    var userId: Int? = 0
//
//    @ApiModelProperty("护士姓名")
//    var name: String? = null
//
//    @ApiModelProperty("性别（1-男、0-女、2-未知）")
//    var sex: Int? = 0
//
//    @ApiModelProperty("婚姻情况(0-未婚、1-已婚、2-未知)")
//    var marriage: Int? = 0
//
//    @ApiModelProperty("出生日期")
//    var birthday: LocalDateTime? = null
//
//    @ApiModelProperty("行政区代码")
//    var pcaCode: Int? = 0
//
//    @ApiModelProperty("地址")
//    var address: String? = null
//
//    @ApiModelProperty("邮政编码")
//    var postCode: String? = null
//
//    @ApiModelProperty("手机号码")
//    var mobile: String? = null
//
//    @ApiModelProperty("简介")
//    var intro: String? = null
//
//    @ApiModelProperty("特长")
//    var specialty: String? = null
//
//    @ApiModelProperty("区域编码")
//    var areaCode: String? = null
//
//    @ApiModelProperty("学历")
//    var education: String? = null
//
//    @ApiModelProperty("职称")
//    var title: String? = null
//
//    @ApiModelProperty("社会机构及职务")
//    var duties: String? = null
//
//    @ApiModelProperty("证件类型")
//    var idType: Int? = 0
//
//    @ApiModelProperty("证件号码")
//    var idNumber: String? = null
//
//    @ApiModelProperty("证件图片")
//    var idUrl: String? = null
//
//    @ApiModelProperty("护士头像图片")
//    var imageUrl: String? = null
//
//    @ApiModelProperty("状态1=有效，0=无效")
//    var status: Int? = 0
//
//    @ApiModelProperty("备注")
//    var remark: String? = null
//
//
//    fun getVo(table: TJzrNurse): NurseVo {
//        table.let {
//            val data = NurseVo()
//            data.address = it.address
//            data.areaCode = it.area_code
//            data.birthday = it.birthday
//            data.code = it.code
//            data.deptCode = it.dept_code
//            data.districtCode = it.district_code
//            data.duties = it.duties
//            data.education = it.education
//            data.idNumber = it.id_number
//            data.idType = it.id_type
//            data.idUrl = it.id_url
//            data.imageUrl = it.image_url
//            data.intro = it.intro
//            data.marriage = it.marriage
//            data.mobile = it.mobile
//            data.name = it.name
//            data.pcaCode = it.pca_code
//            data.sex = it.sex
//            data.status = it.status
//            data.title = it.title
//            data.remark = it.remark
//            data.userId = it.user_id
//            data.specialty = it.specialty
//            data.birthday = it.birthday
//            return data
//        }
//    }
//
//    fun getVoList(table: List<TJzrNurse>): List<NurseVo> {
//        table.let {
//            val datas = mutableListOf<NurseVo>()
//            table.forEach {
//                val data = getVo(it)
//                datas.add(data)
//            }
//            return datas
//        }
//    }
//
//}